This software is free for personal use. To obtain a cheap and simple license for
corporate, commercial or institutional use, contact the author at one of the
addresses listed at the end of this document. THIS SOFTWARE IS PROVIDED AS IS
WITHOUT WARRANTIES. USE AT YOUR OWN RISK! You are encouraged to share this
software with other people and to upload it to online services, but you may not
charge money for it and you should only transfer the complete package. Contact
me if you doubt whether you have a complete package. Inclusion on CD-ROMs
requires explicit permission from me (the author).
Offsets OF is an AppleScript Scripting Addition (OSAX) which searchs a string
or list of strings for a pattern and returns a list of offsets (or a list of
lists of offsets) where the pattern was found in the strings.
INSTALLATION:
______________________
To install: Drag Tokenize to the Scripting Additions folder inside the
Extensions folder.
USAGE:
_______________
offsets of <string> in <string>|<list of strings>
[ case sensitive/insensitive ]
If the case parameter is not specified it defaults to sensitive; that
is, case IS significant, so "and" is not the same as "AND".
You may pass a single string or a list of strings to search in, and there is no
pre-set upper limit on the length of those strings.
For examples of using Offsets Of, see the demo script included with this
archive.
______________________
Comments, bug reports and suggestions are welcomed. If you have any ideas for useful Scripting Additions which haven't been written yet, send me a message describing your idea.